parasite: Use a window group
authorMatthias Clasen <mclasen@redhat.com>
Sat, 3 May 2014 17:21:41 +0000 (13:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 11 May 2014 02:04:10 +0000 (22:04 -0400)
By putting the parasite window in a separate group, we can interact
with it even when there is a modal dialog blocking the application
window

modules/other/parasite/window.c

index 56670ddc9a3c37a0f83b597a9e93ccc468d983c3..4b12b186b3cc7d76e385fe0f3fdac1d90c8596e7 100644 (file)
@@ -207,6 +207,7 @@ gtkparasite_window_create()
     GtkWidget *box;
     GtkWidget *nb;
     char *title;
+    GtkWindowGroup *group;
 
     window = g_new0(ParasiteWindow, 1);
 
@@ -222,6 +223,9 @@ gtkparasite_window_create()
                       G_CALLBACK (delete_window),
                       NULL);
 
+    group = gtk_window_group_new ();
+    gtk_window_group_add_window (group, GTK_WINDOW (window->window));
+
     title = g_strdup_printf("Parasite - %s", g_get_application_name());
     gtk_window_set_title (GTK_WINDOW (window->window), title);